package org.thread.test06.demo02;

/**
 * @author ZJL
 * @date 2025-03-14
 */
public class MainTest {
    public static void main(String[] args) {
        Box box = new Box();

        BoyThread boy1 = new BoyThread(box,"小明");
        BoyThread boy2 = new BoyThread(box,"小白");
        BoyThread boy3 = new BoyThread(box,"小罗");
        BoyThread boy4 = new BoyThread(box,"小李");

        GirldThread girld1 = new GirldThread(box,"小美");
        GirldThread girld2 = new GirldThread(box,"顶美");
        GirldThread girld3= new GirldThread(box,"小小美");
        GirldThread girld4 = new GirldThread(box,"顶美闺蜜");

        boy1.start();
        boy2.start();
        boy3.start();
        boy4.start();

        girld1.start();
        girld2.start();
        girld3.start();
        girld4.start();

    }
}
